<template>
  <a href="javascript:;" class="c-btn" :class="className">
    <slot></slot>
  </a>
</template>

<script>
export default {
  name: "data-v-btn",
  props: ["type"],
  computed: {
    className() {
      let type = this.type || 'default';
      return "c-btn-" + type;
     
    }
  }
};
</script>

<style>
/* .c-btn {
  border-radius: 3px;
  padding: 5px 10px;
  border: 1px solid #007fa1;
  color: #007fa1;
  transition: border color 0.2s;
  text-decoration: none;
}
*/
.c-btn:hover {
  border: 1px solid rgb(30, 151, 185);
  color: rgb(30, 151, 185);
  box-shadow: 0 0 6px rgba(30, 151, 185, 0.7);
}

.c-btn {
  display: block;
  position: relative;
  width: 200px;
  margin: 0 auto;
  padding: 10px 0;
  box-sizing: border-box;
  border: 1px solid #007fa1;
  font-size: 14px;
  text-align: center;
  color: #007fa1;
  border-radius: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  user-select: none;
  text-decoration: none;
}

/* 主操作按钮 */
.c-btn.c-btn-primary {
  background-color: #1aad19;
  color: #fff;
  border-color: #1aad19;
}

/* 警示按钮 */
.c-btn.c-btn-warning {
  background-color: #e64340;
  color: #fff;
  border-color: #e64340;
}
/* 不可用按钮 */
.c-btn.c-btn-disabled {
  background-color: #f7f7f7;
  color: #a5a5a5;
  opacity: 0.6;
  cursor: not-allowed;
}
/* 大按钮 */
.c-btn.c-btn-large {
  width: 100%;
  font-size: 18px;
  border-left: none;
  border-right: none;
  border-radius: 0;
}
/* 大按钮 */
.c-btn.c-btn-mini {
  display: inline-block;
  width: 60px;
  padding: 4px 0;
  font-size: 14px;
}
</style>